package com.iacrqq.sedaf.queue;

import java.util.LinkedList;
import java.util.List;

import com.iacrqq.sedaf.stage.Stage;

public abstract class AbstractQueue<T> implements Queue<T>
{

	private List<Stage> productorList;
	private List<Stage> consummerList;
	
	public AbstractQueue()
	{
		productorList = new LinkedList<Stage>();
		consummerList = new LinkedList<Stage>();
	}
	
	@Override
	public void addProductor(Stage stage)
	{
		productorList.add(stage);
	}

	@Override
	public List getProductors()
	{
		return productorList;
	}

	@Override
	public void addConsummer(Stage stage)
	{
		consummerList.add(stage);
	}

	@Override
	public List getConsummers()
	{
		return consummerList;
	}
}
